Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schematics code cleanup and refactoring to support strict compilation #18415

Merged
merged 4 commits into from
Aug 3, 2020

Conversation

clydin
Copy link
Member

@clydin clydin commented Jul 31, 2020

Several code changes to support enabling TypeScript's strict compilation options. See individual commits for details.

@clydin clydin added the target: major This PR is targeted for the next major release label Jul 31, 2020
… AST

By leveraging TypeScript's AST type guards, function parameter assumptions and casting can be removed.  Many of these cases caused errors when enabling TypeScript's strict option. This is preliminary work to support enabling full TypeScript strict mode within the project.
This change introduces a helper function (`applyToUpdateRecorder`) that handles all known `Change` classes.  The use of this helper function removes type assumptions within the schematics.  Many of these assumptions caused compilation errors when strict TypeScript options are enabled.
@alan-agius4 alan-agius4 added the action: merge The PR is ready for merge by the caretaker label Aug 3, 2020
@clydin clydin merged commit dd58aa6 into angular:master Aug 3, 2020
@clydin clydin deleted the strict-updates branch August 3, 2020 19:40
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants